package com.tbzz.mycloud.service;

import org.springframework.stereotype.Component;

/**
 * 重新定义一个类实现OrderHystrixService接口，已达到服务降级解耦的目的
 */
@Component
public class PaymentFallbackService implements OrderHystrixService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return "-----PaymentFallbackService fall back-paymentInfo_OK ,o(╥﹏╥)o";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "-----PaymentFallbackService fall back-paymentInfo_TimeOut ,o(╥﹏╥)o";
    }
}
